<template>
	<view class="content">
		<Header>
			政协培训
		</Header>
		<liuyuno-tabs :tabData="tabs" :defaultIndex="defaultIndex" @tabClick='tabClick' />
		<view style="height: calc(100vh - 85px - var(--status-bar-height))">
			<notAttend  v-if="defaultIndex == 0"></notAttend>
			<attend  v-if="defaultIndex == 1"></attend>
			<experience  v-if="defaultIndex == 2"></experience>
		</view>
	</view>
</template>

<script>
	import Header from '../../components/header.vue'
	import liuyunoTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
	import notAttend from './notAttend.vue'
	import attend from './attend.vue'
	import experience from './experience/index.vue'
	export default {
		components: {
			Header,
			notAttend,
			attend,
			experience
		},
		data() {
			return {
				tabs: ['待参加', '已参加', '心得体会'],
				defaultIndex: 0,
				type: '',
				name: ''
			}
		},
		onLoad(options) {
		},
		methods: {
			showSearch() {
				uni.navigateTo({
					url: '/pages/search'
				})
			},
			tabClick(index) {
				this.defaultIndex = index
			}
		}
	}
</script>

<style scoped>
	
	
</style>